package com.controller;

import com.pojo.Hospital;
import com.service.HospitalService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/sys/hospital")
public class HospitalHandler {
    @Resource
    private HospitalService hospitalService;
    @RequestMapping("/searchByHospital")
    public Hospital searchByHospital(String id){
        return hospitalService.searchByHospital(id);
    }
}
